package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 时刻家APP消息推送和短信发送记录表
 * </p>
 *
 * @author guoliang.lao
 * @since 2023-03-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_gss_push_msg")
@ApiModel(value="GssPushMsg对象", description="时刻家APP消息推送和短信发送记录表")
public class PushMsg extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "报警器设备主键")
    @TableField("device_id")
    private String deviceId;

    @ApiModelProperty(value = "VCC用户ID")
    @TableField("member_id")
    private String memberId;

    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "推送类型 1:报警器泄漏 2:报警器故障 3:报警器寿命到期 4:接收器电池欠压（低于2.7V时）5:接收器电池欠压（低于2.4V时）6:报警器离线 7:接收器离线")
    @TableField("push_type")
    private Integer pushType;

    @ApiModelProperty(value = "推送和短信内容")
    @TableField("push_text")
    private String pushText;

    @ApiModelProperty(value = "短信模板")
    @TableField("msg_code")
    private String msgCode;

    @ApiModelProperty(value = "APP推送次数")
    @TableField("push_times")
    private Integer pushTimes;

    @ApiModelProperty(value = "短信次数")
    @TableField("send_times")
    private Integer sendTimes;

    @ApiModelProperty(value = "站内信次数")
    @TableField("send_cms_times")
    private Integer sendCmsTimes;
}
